Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter replicated databases #407

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Filter replicated databases #407

merged 1 commit into from
Sep 29, 2023

Conversation

benbjohnson
Copy link
Collaborator

As discussed in this Community forum post, this PR adds a config option to specify a subset of databases to be replicated to a specific replica. Please note that this config option is only allowed on non-candidate nodes! If we allowed it on candidate nodes then it would delete the other databases when the node became primary.

Usage

To use the filter, specify it with the lease.databases config field:

lease:
  candidate: false  # Must not be a candidate, otherwise will error out on startup
  databases: ["foo.db", "bar.db"]

or you can use the multiline array format:

lease:
  databases: 
    - "foo.db"
    - "bar.db"

@benbjohnson benbjohnson merged commit dce966e into main Sep 29, 2023
16 checks passed
@benbjohnson benbjohnson deleted the replica-filter branch September 29, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant